using System;
using MediatR;

namespace Agriculture.Api.Read.Application.Command
{
    /// <summary>
    /// 用户登录命令
    /// </summary>
    public class UserLoginCommand : IRequest<UserLoginResult>
    {
        /// <summary>
        /// 用户名/手机号
        /// </summary>
        public string Account { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
    }

    /// <summary>
    /// 用户登录结果
    /// </summary>
    public class UserLoginResult
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 真实姓名
        /// </summary>
        public string RealName { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        public string Phone { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        public string Avatar { get; set; }

        /// <summary>
        /// 角色
        /// </summary>
        public string Role { get; set; }

        /// <summary>
        /// JWT Token
        /// </summary>
        public string Token { get; set; }

        /// <summary>
        /// Token过期时间
        /// </summary>
        public DateTime TokenExpireTime { get; set; }
    }
} 